
#ifndef __DMAI_MEMORY_H__
#define __DMAI_MEMORY_H__

#include "dmai_env.h"

HANDLE buffer_create (unsigned int size);

int buffer_delete (HANDLE obj);

char * buffer_getUserPtr(HANDLE obj);

void buffer_setNumBytesUsed(HANDLE obj, uint32_t numBytes);

uint32_t buffer_getNumBytesUsed(HANDLE obj);

uint32_t buffer_getSize(HANDLE obj);

void buffer_print(HANDLE obj);

#endif
